package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.security.Permission;

public interface PermissionService {
    static final int Init_None = 0;
    static final int Init_Roles = 1 << 0;//1

    void initPermissions();

    Permission findById(long id, int init);

    List<Permission> findAll(int init);

    List<Permission> findAll();

    void save(Permission permission);
}
